using UnityEngine;
using System.Collections;

public class VirtualKeySource
{
	VirtualKeySourceConfig _config;

	public VirtualKeySource(VirtualKeySourceConfig config)
	{
		_config = config;
	}

	public bool isPresent(VirtualKey virtualKey)
	{
		KeyCode keyCode;
		return _config.TryGetValue(virtualKey, out keyCode) ? Input.GetKeyDown(keyCode) : false;
	}
	public void reset()
	{
		//TODO implement
	}
}
